package com.example.gybicycle.common.pay.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 *
 * @author gejunqing
 * @version 1.0
 * @date 2024/1/11
 */
public class TxUtils
{
    private static final String YYYY_MM_DD_HH_MM_SS = "yyyyMMddHHmmss";

    public static String genReqTraceNum()
    {
        return new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS).format(new Date()) + (new Random().nextInt(9000) + 1000);
    }

    public static void main(String[] args)
    {
        System.out.println(genReqTraceNum());
    }
}
